package com.fq.ability.shiro.properties;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author 超chao
 * @Description TODO
 * @Date 2024/10/12/周六 15:16
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "shiro")
public class ShiroProperties {

    /**
     * shiro 白名单----anon
     */
    private List<String> anon;

    /**
     * shiro 白名单----jwt
     */
    private List<String> jwt;
    /**
     * redis 配置
     */
    private RedisProperties redis;

    @Data
    @NoArgsConstructor
    public static class RedisProperties {
        /**
         * 地址
         */
        private String host;
        /**
         * redis 密码
         */
        private String password;
        /**
         * 库
         */
        private Integer datasource;
    }

}